home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / wiggi_wa.swf / scripts / DefineSprite_272 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  735 b   |  35 lines

  1. function onEnterFrame()
  2. {
  3.    if(this.hitTest(_parent.HERO))
  4.    {
  5.       if(defaultCam == true)
  6.       {
  7.          _parent.defaultCamera();
  8.       }
  9.       else
  10.       {
  11.          if(camTarget != undefined)
  12.          {
  13.             _parent.camTarget = camTarget;
  14.          }
  15.          if(camType != undefined)
  16.          {
  17.             _parent.camTypeStore = camType;
  18.          }
  19.          if(camElasticStore != undefined)
  20.          {
  21.             _parent.camElasticStore = camElastic;
  22.          }
  23.          if(camXPos != undefined)
  24.          {
  25.             _parent.camXPos = camXPos;
  26.          }
  27.          if(camYPos != undefined)
  28.          {
  29.             _parent.camYPos = camYPos;
  30.          }
  31.       }
  32.    }
  33. }
  34. _visible = false;
  35.